/**
 * Created by Administrator on 2017/1/29 0029.
 */
var Webpack =require('webpack')
module.exports={
    entry:{
        app:['./entry.js'],

    },
    output:{
        path:__dirname,
        filename:'bundle.js'
    },
    module:{
        loaders:[
            {test:/\.css$/, loader:'style!css' },
            {test: /\.json$/, loader: 'json-loader'},
            {test: /\.(png|jpg|woff|woff2|eot|ttf|svg)$/, loader: 'url-loader?limit=8192'},
            {test:/\.(js|jsx)$/,loader:'babel-loader', query:{presets:['react','es2015']}}
        ]
    },
    plugins:[
        new Webpack.HotModuleReplacementPlugin(),
    ]
}
